home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 36 / PC Gamer IT CD 36 2-2.iso / SINDEMO / sindemo2.exe / data / base / pak0.pak / models / view_asrifle.def < prev    next >
Text File  |  1998-09-22  |  2KB  |  74 lines

  1. SDEF
  2. //
  3. // The file declaration section
  4. //
  5. path models/asrifle
  6. origin -5 4 2
  7. //scale 1.0
  8. scale 1.5
  9.  
  10. asrifle_base.sbm
  11. asrifle_base.tga
  12.  
  13. //
  14. // Declare the animation types and files
  15. //
  16. ready1            asrifle_ready.SAM
  17. fire1        asrifle_fire.SAM
  18. silfire1    asrifle_fire.SAM
  19. idle1        asrifle_idle1.SAM
  20. idle1        asrifle_idle2.SAM
  21. idle1        asrifle_idle3.SAM
  22. reload1        asrifle_reload.sam
  23. empty1        asrifle_empty.sam
  24. putaway1    asrifle_putaway.SAM
  25. //
  26. // Define model group areas
  27. //
  28. id 200 group weapon bone barrel 0 180 90
  29. id 210 group weapon bone eject
  30.  
  31. //
  32. // The initialization section
  33. //
  34. !init:
  35. //
  36. // Define the animation sound references
  37. //
  38. client aliasprefix AsRifle_
  39. client aliascache snd_fire1    "weapons/asrifle/6.wav"
  40. client aliascache snd_silfire1 "weapons/asrifle/silenced.wav"
  41. //client aliascache snd_silfire "weapons/asrifle/silenced.wav"
  42. client aliascache snd_reload1 "weapons/asrifle/reload1.wav"
  43.  
  44.  
  45. //
  46. // The main section
  47. //
  48. !main:
  49. //
  50. // Define the client/server animation references
  51. //
  52. client fire1 first randomsound snd_fire 1 1
  53. client fire1 first attach barrel sprites/gunblast.spr time 0.05 scale 0.4 randomroll
  54. client fire1 first bonespawn barrel sprites/tracer.spr detail physics vel 1500 0 0 time 10 touchdie randomspawn 0.7 invertpitch angles 90 0 0 lerp
  55. client fire1 first shootbullets 1 120 120 120
  56. // dlight <red> <rand_red_amount> <green> <rand_green_amount> <blue> <rand_blue_amount> <radius> <rand_radius_amount> <life> <decay>
  57. client fire1 first dlight 1 0 0.2 0.5 0 0 240 50 0.6 0.8
  58. client fire1 first bonespawn eject models/shell.def detail bounce vel 100 60 100 time 10 random 0.8 touchdie bouncesound impact_bulletcase
  59. server fire1 first weaponsound
  60. server fire1 first shoot
  61. server fire1 first prevframe 1
  62. server fire1 first endanim
  63.  
  64. // Silenced weapon fire
  65. client silfire1 first randomsound snd_silfire 0.6 1
  66. server silfire1 first movementsound
  67. client silfire1 first shootbullets 1 120 120 120
  68. server silfire1 first shoot
  69. server silfire1 first prevframe 1
  70. client silfire1 first bonespawn eject models/shell.def detail bounce vel 100 60 100 time 10 random 0.8 touchdie bouncesound impact_bulletcase
  71. server silfire1 first prevframe 1
  72. server silfire1 first endanim
  73. //reload
  74. client reload1 first randomsound snd_reload 1 7